home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: table size
- Sent: 4/2/96 5:49 PM
- Received: 4/2/96 6:01 PM
- From: lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I'm working on a part that goes out to our native data sets
- >and presents the data in tabular format. The data sets that
- >I read can have millions of observations. The problem comes
- >in in my frame's AdjustSubViews method. I get the content
- >view and then need to call the view's SetExtent method to
- >indicate the size of the table. The extent size takes a
- >FW_CPoint to indicate maximum width and height of the table, and
- >the point uses FW_CFixed to hold each value. I believe that
- >the maximum value a FW_CFixed value can hold is the maximum
- >size representable by a signed short (32767). So how do I
- >indicate a table much larger than this? I assume if I have
- >a 3 million oberservation table, and each row is 18 pixels
- >high, I would need to indicate a value of 54 million. How
- >do I set the extent of the table?
- >
- >Thanks,
- >Brian Hess
- >SAS Institute Inc.
-
- We do not directly support views longer than 32767 pixels in ODF. This is
- something we will be supporting in the future.
-
- They are two solutions to your problem:
-
- 1) The first one is a little tricky and could be challenging to implement
- (with or without ODF). A fixed number is in fact a long (16.16). You
- could decide to use 24.8 or 32.0 instead of 16.16 giving you a larger
- range. Kurt Piersol wrote an article in the Develop Magazine a year or so
- ago on the subject. Check it out. Future releases of ODF will implement
- something like that using the ODF FW_CMapping class.
-
- 2) The second one is to do the same thing you were doing before with just
- plain Toolbox calls (remember Quickdraw is only using 16 bits). Leave the
- extent the size of the frame and attached the position of the thumb in
- the scrollbar to the top cell. Scroll your data inside the view instead
- of scrolling the view. This second solution should be easier to implement
- with our next release (ODF Release 1) than with d11.
-
-
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-
-